//
//  UIViewCor.m
//  LiquorChain
//
//  Created by apple on 2018/12/22.
//  Copyright © 2018年 王冬. All rights reserved.
//

#import "UIViewCor.h"

@implementation UIViewCor


-(instancetype)initWithFrame:(CGRect)frame corNumer:(CGFloat)number{
    
    
    self = [super initWithFrame:frame];
    if (self) {
        //设置圆角半径值
        self.layer.cornerRadius  = number;
        //设置为遮罩，除非view有阴影，否则都要指定为YES的
        //self.layer.masksToBounds = YES;
    }
    return self;
}
//- (instancetype)initWithFrame:(CGRect)frame
//{
//
//}
@end
